package com.umgsai.thread.thread60;

import java.io.Serializable;

public class MyObject implements Serializable {
	private static final long serialVersionUID = 1L;
	private static class MyObjectHandler{
		private static MyObject myObject = new MyObject();
	}
	private MyObject(){
		
	}
	public static MyObject getInstance () {
		return MyObjectHandler.myObject;
	}
	protected Object readResolve(){
		System.out.println("readResolve invoked");
		return MyObjectHandler.myObject;
	}
}
